package com.qinglei.recoup.system.pojo;

import com.qinglei.recoup.common.domain.RegexpConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@Api(tags = "修改监测时间参数")
public class MonitorTimeUpdateParam implements Serializable {

    @ApiModelProperty("ID")
    @NotNull(message = "{required}")
    private Integer id;

    @ApiModelProperty("开始时间 格式 09:00")
    @Pattern(regexp = RegexpConstant.TIME_REG, message = "{time}")
    private String startTime;

    @ApiModelProperty("结束时间 格式 09:00")
    @Pattern(regexp = RegexpConstant.TIME_REG, message = "{time}")
    private String endTime;
}
